<!DOCTYPE html>
<html>
<head>
    <title>其它外包修改</title>
    <meta charset=utf-8>
    <meta name=viewport content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="../../layui_2.5.5/css/layui.css">
    <script type="text/javascript" src="../../layui_2.5.5/layui.js"></script>

</head>
<body>
    <!--第二部分总体设置-->
    <form class="layui-form" action="">
    <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">发货人：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input disabled="disabled" type="text" name="consigners" id="consigners" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">发货电话：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input  disabled="disabled" type="text" name="shippingphone" id="shippingphone" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">发货单位：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input disabled="disabled" type="text" name="shippingunits" id="shippingunits"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">发货地址：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input disabled="disabled" type="text" name="shippingaddress" id="shippingaddress"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
  </div>


  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">收货人：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input disabled="disabled" type="text" name="consignees" id="consignees"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">收货电话：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input disabled="disabled" type="text" name="receivingphone" id="receivingphone"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                    <label class="layui-form-label">收货单位：</label>
                    <div class="layui-input-inline">
                        <input disabled="disabled" type="text" name="receivingunit" id="receivingunit" lay-verify="date1" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">收货地址：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input disabled="disabled" type="text" name="receiptaddress" id="receiptaddress"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
  </div>
<hr class="layui-border-cyan">
  <div style="width: 100%;height: 40px;">
    <dd style="text-align-last: center;font-size:16px;">其他外包信息</dd>
</div>
<hr class="layui-border-cyan">

  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">托运单号：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input disabled="disabled" type="text" name="checkenumber" id="checkenumber" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                    <label class="layui-form-label">外包单号：</label>
                    <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="outsourcingnumber" id="outsourcingnumber" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">外包公司：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="outsourcingcompany" id="outsourcingcompany" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">外包电话：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="outsourcephone" id="outsourcephone" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
  </div>

  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">转包日期：</label>
                         <div class="layui-input-inline" style="width:160px;">
                        <input type="text" name="subcontractingdate" id="subcontractingdate" lay-verify="date1" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">外包运费：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="outsourcedfreight" id="outsourcedfreight" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">外包类型：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="outsourcingtype" id="outsourcingtype" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>

  </div>

  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs12">
      <div class="grid-demo">

            <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo" style="align-items: center">立即提交</button>
        </div>
    </div>
      </div>
    </div>
  </div>

    </form>
</body>
<script>
    layui.use(['form', 'layedit', 'laydate','table'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate
            ,table = layui.table;
            var $ = layui.jquery;
            //日期初始化
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#subcontractingdate'
        });

        //监听提交：提交事件
        form.on('submit(formDemo)', function(data){
            $.ajax({
                type:'post'
                ,url:'../../updateOtheroutsourcinglist'
                ,data:data.field
                ,success:function(obj) {
                    if(obj.length>0){
                        parent.layer.close(1); //再执行关闭
                        //修改成功后刷新父界面
                        window.parent.location.reload();
                    }
                }
            });
            return false;
        });


    });
</script>
</html>